//===============================================================================
// Microsoft patterns & practices
// Web Client Software Factory
//-------------------------------------------------------------------------------
// Copyright (C) Microsoft Corporation.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//-------------------------------------------------------------------------------
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious.  No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.
//===============================================================================
using System;
using System.Collections.ObjectModel;

namespace WCSFContrib.PageFlow.Storage.EnterpriseLibrary.Tests.Mocks
{
	internal class MockPageFlowInstance : IPageFlow
	{       
		#region IPageFlow Members
#pragma warning disable 0067
		public event EventHandler<PageFlowAbortedEventArgs> Aborted;

		public event EventHandler<PageFlowEventArgs> Started;

		public event EventHandler<PageFlowEventArgs> Suspended;

		public event EventHandler<PageFlowEventArgs> Completed;

        public event EventHandler<PageFlowEventArgs> Resumed;

#pragma warning restore 0067
		public Page CurrentPage
		{
			get { throw new Exception("The method or operation is not implemented."); }
		}

		public IPageFlowDefinition Definition
		{
			get { return new MockPageFlowDefinition(); }
		}

		private Guid _id;

		public Guid Id
		{
			get { return _id; }
			set { _id = value; }
		}

		public PageFlowStatus Status
		{
			get { throw new Exception("The method or operation is not implemented."); }
		}

		public ReadOnlyCollection<string> Transitions
		{
			get { throw new Exception("The method or operation is not implemented."); }
		}

		public PageFlowState UserData
		{
			get { throw new Exception("The method or operation is not implemented."); }
		}

		public void Abort(bool redirectToAbortPage)
		{
			throw new Exception("The method or operation is not implemented.");
		}

		public bool CanRedirectTo(string pageName)
		{
			throw new Exception("The method or operation is not implemented.");
		}

		public void Navigate(string transitionName)
		{
			throw new Exception("The method or operation is not implemented.");
		}

		public void RedirectToCurrentPage()
		{
			throw new Exception("The method or operation is not implemented.");
		}

		public void SetCurrentPage(string pageName)
		{
			throw new Exception("The method or operation is not implemented.");
		}

		public void Start()
		{
			throw new Exception("The method or operation is not implemented.");
		}

		public void Suspend()
		{
			throw new Exception("The method or operation is not implemented.");
		}

		#endregion

		public void Complete()
		{
			throw new Exception("The method or operation is not implemented.");
		}

		public void Next()
		{
			throw new Exception("The method or operation is not implemented.");
		}



        public void Resume()
        {
            throw new Exception("The method or operation is not implemented.");
        }        
        
    }
}
